
<?php
//$string = 'tet,test,tet,';

//echo ereg_replace(",$", "", $string). "\n"; 

$mystring = "arbc,cb,";

/*
$len = strlen($mystring);
print "len". $len. "\n";
$pos = strrpos($mystring, "b");
if ($pos === false || strlen($mystring) == $pos + 1 )) { // note: three equal signs
   // not found...
}
*/

$str = "eth1,eth2,eth4";

print __FILE__;
print "\n";
print basename(__FILE__);

i//print DelEndComma($str). "\n";

?>
